<div class="panel panel-primary">
  <div class="panel-heading">NgFor演示</div>
  <div class="panel-body">
    <h3>请选择种族</h3>
    <li *ngFor="let race of races;let i=index;">
      {{i+1}}-{{race.name}}
    </li>
  </div>
</div>